package com.xoa.model.officeTask;

import com.baomidou.mybatisplus.annotations.TableName;

import java.util.Date;



/**
 * <p>
 * 用户表
 * </p>
 */
@TableName("office_task")
public class OfficeTask {
    /**
     *自增唯一ID
     */
    private Integer taskId;

    /**
     * 任务类型(0-间隔执行PHP程序,1-定时执行PHP程序,2-定时执行EXE程序,3-间隔执行EXE程序)
     */
    private String taskType;

    /**
     * 执行间隔，单位分钟
     */
    private Integer interval;

    /**
     * 执行时间
     */
    private Date execTime;

    /**
     * 上次执行时间
     */
    private Date lastExec;

    /**
     * 执行标记(0-未执行,1-执行成功,2-执行失败)
     */
    private Byte execFlag;

    /**
     * 任务执行结果描述
     */
    private String execMsg;

    /**
     * 任务文件
     */
    private String taskUrl;

    /**
     * 任务名称
     */
    private String taskName;

    /**
     * 任务详细描述
     */
    private String taskDesc;

    /**
     * 任务唯一代码
     */
    private String taskCode;

    /**
     * 是否启用(1-是,0-否)
     */
    private String useFlag;

    /**
     * 是否系统内置任务(1-是,0-否)
     */
    private String sysTask;

    /**
     *扩展数据
     */
    private Byte exceptionLog;

    /**
     *执行失败是否记录异常日志（0 不记录，1 记录）
     */
    private String extData;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.TASK_ID
     *
     * @return the value of office_task.TASK_ID
     *
     * @mbggenerated
     */
    public Integer getTaskId() {
        return taskId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.TASK_ID
     *
     * @param taskId the value for office_task.TASK_ID
     *
     * @mbggenerated
     */
    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.TASK_TYPE
     *
     * @return the value of office_task.TASK_TYPE
     *
     * @mbggenerated
     */
    public String getTaskType() {
        return taskType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.TASK_TYPE
     *
     * @param taskType the value for office_task.TASK_TYPE
     *
     * @mbggenerated
     */
    public void setTaskType(String taskType) {
        this.taskType = taskType == null ? null : taskType.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.INTERVAL
     *
     * @return the value of office_task.INTERVAL
     *
     * @mbggenerated
     */
    public Integer getInterval() {
        return interval;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.INTERVAL
     *
     * @param interval the value for office_task.INTERVAL
     *
     * @mbggenerated
     */
    public void setInterval(Integer interval) {
        this.interval = interval;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.EXEC_TIME
     *
     * @return the value of office_task.EXEC_TIME
     *
     * @mbggenerated
     */
    public Date getExecTime() {
        return execTime;
    }

    public void setExecTime(Date execTime) {
        this.execTime = execTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.LAST_EXEC
     *
     * @return the value of office_task.LAST_EXEC
     *
     * @mbggenerated
     */
    public Date getLastExec() {
        return lastExec;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.LAST_EXEC
     *
     * @param lastExec the value for office_task.LAST_EXEC
     *
     * @mbggenerated
     */
    public void setLastExec(Date lastExec) {
        this.lastExec = lastExec;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.EXEC_FLAG
     *
     * @return the value of office_task.EXEC_FLAG
     *
     * @mbggenerated
     */
    public Byte getExecFlag() {
        return execFlag;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.EXEC_FLAG
     *
     * @param execFlag the value for office_task.EXEC_FLAG
     *
     * @mbggenerated
     */
    public void setExecFlag(Byte execFlag) {
        this.execFlag = execFlag;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.EXEC_MSG
     *
     * @return the value of office_task.EXEC_MSG
     *
     * @mbggenerated
     */
    public String getExecMsg() {
        return execMsg;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.EXEC_MSG
     *
     * @param execMsg the value for office_task.EXEC_MSG
     *
     * @mbggenerated
     */
    public void setExecMsg(String execMsg) {
        this.execMsg = execMsg == null ? null : execMsg.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.TASK_URL
     *
     * @return the value of office_task.TASK_URL
     *
     * @mbggenerated
     */
    public String getTaskUrl() {
        return taskUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.TASK_URL
     *
     * @param taskUrl the value for office_task.TASK_URL
     *
     * @mbggenerated
     */
    public void setTaskUrl(String taskUrl) {
        this.taskUrl = taskUrl == null ? null : taskUrl.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.TASK_NAME
     *
     * @return the value of office_task.TASK_NAME
     *
     * @mbggenerated
     */
    public String getTaskName() {
        return taskName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.TASK_NAME
     *
     * @param taskName the value for office_task.TASK_NAME
     *
     * @mbggenerated
     */
    public void setTaskName(String taskName) {
        this.taskName = taskName == null ? null : taskName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.TASK_DESC
     *
     * @return the value of office_task.TASK_DESC
     *
     * @mbggenerated
     */
    public String getTaskDesc() {
        return taskDesc;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.TASK_DESC
     *
     * @param taskDesc the value for office_task.TASK_DESC
     *
     * @mbggenerated
     */
    public void setTaskDesc(String taskDesc) {
        this.taskDesc = taskDesc == null ? null : taskDesc.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.TASK_CODE
     *
     * @return the value of office_task.TASK_CODE
     *
     * @mbggenerated
     */
    public String getTaskCode() {
        return taskCode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.TASK_CODE
     *
     * @param taskCode the value for office_task.TASK_CODE
     *
     * @mbggenerated
     */
    public void setTaskCode(String taskCode) {
        this.taskCode = taskCode == null ? null : taskCode.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.USE_FLAG
     *
     * @return the value of office_task.USE_FLAG
     *
     * @mbggenerated
     */
    public String getUseFlag() {
        return useFlag;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.USE_FLAG
     *
     * @param useFlag the value for office_task.USE_FLAG
     *
     * @mbggenerated
     */
    public void setUseFlag(String useFlag) {
        this.useFlag = useFlag == null ? null : useFlag.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.SYS_TASK
     *
     * @return the value of office_task.SYS_TASK
     *
     * @mbggenerated
     */
    public String getSysTask() {
        return sysTask;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.SYS_TASK
     *
     * @param sysTask the value for office_task.SYS_TASK
     *
     * @mbggenerated
     */
    public void setSysTask(String sysTask) {
        this.sysTask = sysTask == null ? null : sysTask.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.EXCEPTION_LOG
     *
     * @return the value of office_task.EXCEPTION_LOG
     *
     * @mbggenerated
     */
    public Byte getExceptionLog() {
        return exceptionLog;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.EXCEPTION_LOG
     *
     * @param exceptionLog the value for office_task.EXCEPTION_LOG
     *
     * @mbggenerated
     */
    public void setExceptionLog(Byte exceptionLog) {
        this.exceptionLog = exceptionLog;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column office_task.EXT_DATA
     *
     * @return the value of office_task.EXT_DATA
     *
     * @mbggenerated
     */
    public String getExtData() {
        return extData;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column office_task.EXT_DATA
     *
     * @param extData the value for office_task.EXT_DATA
     *
     * @mbggenerated
     */
    public void setExtData(String extData) {
        this.extData = extData == null ? null : extData.trim();
    }

    //执行时间字符串
    private String execTimeString;
    public void setExecTimeString(String execTimeString){
        this.execTimeString = execTimeString;
    }
    public String getExecTimeString(){
        return execTimeString;
    }

    //上次执行时间字符串
    private String lastExecString;
    public void setLastExecString(String lastExecString){
        this.lastExecString = lastExecString;
    }
    public String getLastExecString(){
        return lastExecString;
    }
}